public class Date {

    public int year = 1000;
    public int month = 10;
    public int day = 10;

    public void printDate() {
        System.out.println(year+" 年 "+month+" 月 "+day+" 日");
    }

    public static void main(String[] args) {

        Date date1 = new Date();
        date1.printDate();
    }
}
